import service from "@/service";



interface IAdmin {
  adminname: string;
  password: string;
}

// 1、登录
export const loginApi = (data: IAdmin) =>
  service({
    url: "/admin/login",
    method: "post",
    data,
  });
